<!-- 系统图配置 -->

<template>
  <div v-if="!GETTER.hasIP && one.deviceCategoryId !== '9'" class="marginBottom">
    <MajorTitle title="系统图配置" />

    <draggable v-model="one.deviceGraphDto" :animation="200" draggable=".IOTList-ConfigItem">
      <ConfigItem
        v-for="item in one.deviceGraphDto"
        :key="item.time || item.id"
        :obj="item"
        class="IOTList-ConfigItem"
      />

      <ConfigAdd class="IOTList-ConfigAdd" />
    </draggable>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'OurConfig',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>

<style lang="scss">
@import './index.scss';
</style>
